package com.tools_s7.adapter;

import android.widget.TextView;

import com.tools.s7.recycler.BaseRecyclerAdapter;
import com.tools.s7.recycler.holder.BaseViewHolder;
import com.tools_s7.R;

/**
 * Created by Administor on 2018\7\12 0012.
 */

public class TestAdapter extends BaseRecyclerAdapter<String> {

    @Override
    protected int getLayoutId() {
        return R.layout.layout_text;
    }

    @Override
    protected void bindData(BaseViewHolder holder, int position, String data) {
        TextView textView = holder.getView(R.id.text);
        textView.setText(data);
    }
}
